'use strict';
/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, middleware } = app;
  require('./routers/carRouter.js')(app);
  require('./routers/wechatRouter.js')(app);

  router.get('/', controller.home.index);
  // 路由重定向
  router.get('/web/*', controller.home.index);


  router.post('/user/login', controller.user.login);

  router.get('/queryTable', middleware.jwtHandler(), controller.table.queryWithInnerJoin);
};
